<template>
  <view class="behavior">
    <fui-list>
        <fui-list-cell @click="item.fun" arrow v-for="item in dataList" :key="item.text">
            <view class="fui-align__center">
                <fui-icon size="28" :name="item.icon"></fui-icon>
                <text>{{item.text}}</text>
            </view>
        </fui-list-cell>

    </fui-list>
  </view>
</template>

<script setup lang="ts">

const dataList = ref([
    {
        text:'提现记录',
        count:0.00,
        icon:'bankcard',
        fun:()=>{
            uni.navigateTo({
                url:"/subPackages_user/withdrawalRecords/withdrawalRecords"
            })
        }
    },
    {
        text:'收益报表',
        count:0.00,
        icon:'linechart',
        fun:()=>{
             uni.navigateTo({
                url:"/subPackages_user/income/income"
            })
        }
    },
    {
        text:'变动记录',
        count:0.00,
        icon:'aftersale',
        fun:()=>{
            uni.navigateTo({
                url:"/subPackages_user/changeRecord/changeRecord"
            })
        }
    }
])

</script>

<style lang="scss" scoped>
.behavior{
    margin-top: 20rpx;
    border-radius: 20rpx;
    font-size: 28rpx;
    border-radius: 20rpx;
    text{
        margin-left: 10rpx;
    }
}

</style>
